-- GENERATED SPELL FOR [Hitah'ya the Keeper] --


function spell0_10802(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_10802', 15000, 1)
end

function spell1_10802(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10802', 3000, 1)
end

function spell2_10802(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(11639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10802', 18000, 1)
end

function Sorts_10802(pUnit, Event)
local choix_sorts_10802 = math.random(0, 2)
if choix_sorts_10802 == 0 then
pUnit:RegisterEvent('spell0_10802', 1, 1)
end
if choix_sorts_10802 == 1 then
pUnit:RegisterEvent('spell1_10802', 1, 1)
end
if choix_sorts_10802 == 2 then
pUnit:RegisterEvent('spell2_10802', 1, 1)
end
end

function mob10802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10802', math.random(1500, 3000), 1)
end

function mob10802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10802, 1, 'mob10802_Action')
RegisterUnitEvent(10802, 2, 'mob10802_Leave')
RegisterUnitEvent(10802, 3, 'mob10802_Kill')
RegisterUnitEvent(10802, 4, 'mob10802_Die')
